<template>
  <!-- icon卡片 -->
  <ul class="item3">
    <li
      v-for="item in list"
      :key="item.id"
    >
      <a href="JavaScript:;">
        <i
          class="iconfont icon-list"
          :class="item.icons"
        />
        <span>{{ item.text }}</span>
      </a>
    </li>
  </ul>
</template>

<script setup>
import { defineProps } from 'vue'

// 接收父组件信息
defineProps({
  list: {
    type: Array,
    required: true
  }
})
</script>

<style lang="less" scoped>
  .item3{
    width:92%;
    height: 50px;
    margin: auto;
    background-color: #fff;
    border: 1px solid gray;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    li{
      a{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        .icon-list{
          font-size: 25px;
          color: #8B658B;
          margin-bottom: 5px;
        }
        span{
          font-size: 10px;
        }
      }
    }
  }
</style>
